﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Temp : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RedirectIndexPage();
        }

    }

    protected void RedirectIndexPage()
    {
        string s = string.Empty;

        s = s + "<script type=\"text/javascript\">" + "\r\n";


        s = s + "window.open(\"main.htm\",\"\",\"width=\" + (screen.availWidth - 8) + \",height=\" + (screen.availHeight-34) + \",top=0,left=0,'fullscreen=yes,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,status=no\");closeme();" + "\r\n";
        s = s + "</script>";
        ScriptManager.RegisterStartupScript(this, this.GetType(), this.Page.ToString(), s, false);
    }

}